import {http} from '@/utils/http'
import type { PwdInfo, PwdQuery, Response } from '@/api/pwd/type'



export function listByQuery(query:PwdQuery): Promise<Response<PwdInfo[]>> {
    return http({
        url: `/pwd/v1/pwd/listByQuery`,
        method: "GET",
        data: query,
    });
}


export function updateById(id: number, desc: string) {
    return http({
        url: `/processFlowRejectReason/${id}/${desc}`,
        method: "PUT",
    });
}

export function deleteById(id: number) {
    return http({
        url: `/processFlowRejectReason/${id}`,
        method: "DELETE",
    });
}

export function insert(desc: string) {
    return http({
        url: `/processFlowRejectReason/${desc}`,
        method: "POST",
    });
}